//
//  FeedbackViewModel.m
//  HTP
//
//  Created by 王鑫 on 15/12/1.
//  Copyright © 2015年 nit. All rights reserved.
//

#import "FeedbackViewModel.h"

@implementation FeedbackViewModel

- (void)addValidatecodeSmsInfoByPhoneNumber:(NSString *)phoneNumber andSmsContent:(NSString *)smsContent{
    tns1_addValidatecodeSmsInfo *addValidate = [[tns1_addValidatecodeSmsInfo alloc] init];
    addValidate.phoneNumber = phoneNumber;
    addValidate.smsContent = smsContent;
    [WSDLNetWork shareInstance:^interfaceSoapBindingResponse *(interfaceSoapBinding *binding){
        return [binding addValidatecodeSmsInfoUsingParameters:addValidate headerElements:nil];
    }withResult:^(NSDictionary *message) {
        [self fetchResult:message];
    } throwError:^(NSError *error) {
        [self fetchError];
    }];
}
@end
